<?php
include "librari/koneksi.php";
//get the value from form update
 $id = $_POST['idAdmin'];
 $nama = $_POST['nmAdmin'];
 $password = $_POST['passwdAdmin'];

//query for update data in database
 $query = "UPDATE administrator SET nmAdmin = '$name', passwdAdmin = '$password' WHERE id = '$idAdmin'" ;
 $hasil = mysql_query($query);
 //see the result
 if ($hasil) {
    include "data.php";
	echo "<h4> update data success </h4>";
}
?>